-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: vscode fails to load scripts from _solara/cdn #763
fix: vscode fails to load scripts from _solara/cdn #763
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @iisakkirotko and the rest of your teammates on Graphite |
We fetch from an online cdn instead. Implements the same method as in 7238a37 for vegalite for other vue template components.
25d327b
to
8b48dd7
Compare
solara/components/markdown.py
Outdated
@@ -76,6 +76,12 @@ def _markdown_template( | |||
html, | |||
style="", | |||
): | |||
cdn = r"null" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cdn = r"null" | |
cdn = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me know if you agree with my solution - I changed cdn
to None
by default, and instead filter it out later:
this.cdn = """
+ (rf"'{cdn}'" if cdn is not None else r"null")
+ r""";
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, this makes more sense 👍
Co-Authored-by: maartenbreddels <maartenbreddels@gmail.com>
Related to #488 |
And #480 |
Fixes #761.